package com.example.kekewaimaibao.user.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author: xuxiang
 * @date: 2022/3/7 9:42 星期一
 * @description:
 * @version: 1.0
 */
@Data
@TableName("keke_user")
public class UserDO implements Serializable {
    private static final long serialVersionUID = -1L;

    @TableId("user_id")
    private String userId;
    @TableField("user_name")
    private String userName;
    @TableField("nick_name")
    private String nickName;
    @TableField("email")
    private String email;
    @TableField("phone")
    private String phone;
    @TableField("sex")
    private String sex;
    @TableField("avatar")
    private String avatar;
    @TableField("password")
    private String password;
    @TableField("status")
    private String status;
    /**
     * 进行逻辑删除的时候将这个值置为1,yml需要进行配置
     */
    @TableLogic
    private String delFlag;
    @TableField("create_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @TableField("update_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    @TableField("remark")
    private String remark;
}
